﻿<base:BaseUserControl x:Class="WebSiteAdminTool.UI.Views.Security.Users.UserManagementActionsPanel"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    xmlns:base="clr-namespace:WebSiteAdminTool.UI.Views.Base"
    xmlns:vm="clr-namespace:WebSiteAdminTool.UI.ViewModels"
    xmlns:vs="clr-namespace:WebSiteAdminTool.UI.Views.Security"
    mc:Ignorable="d"
    d:DesignHeight="300" 
    d:DesignWidth="300"
    DataContext="{Binding UserManagementActionsViewModel, Source={StaticResource ViewModelLocator}}">

    <Grid x:Name="LayoutRoot" Style="{StaticResource SidePanelContainer}">
        <StackPanel>
            <StackPanel Style="{StaticResource SidePanelActionGroup}">
                <TextBlock Style="{StaticResource SidePanelActionGroupCaption}">User Tasks:</TextBlock>
                <HyperlinkButton Style="{StaticResource SidePanelActionLink}" Command="{Binding Path=CreateUserCommand}">Create User</HyperlinkButton>
                <HyperlinkButton Style="{StaticResource SidePanelActionLink}" Command="{Binding Path=EditUserCommand}">Edit Selected User</HyperlinkButton>
                <HyperlinkButton Style="{StaticResource SidePanelActionLink}" Command="{Binding Path=RemoveUserCommand}">Remove Selected User</HyperlinkButton>
                <HyperlinkButton Style="{StaticResource SidePanelActionLink}" Command="{Binding Path=ResetPasswordCommand}" Visibility="{Binding Path=ResetPasswordVisibility, Mode=OneWay}">Reset Password</HyperlinkButton>
                <HyperlinkButton Style="{StaticResource SidePanelActionLink}" Command="{Binding Path=UpdateQuestionAnswerCommand}" Visibility="{Binding Path=UpdateQuestionAnswerVisibility, Mode=OneWay}">Update Question &amp; Answer</HyperlinkButton>
            </StackPanel>
            <vs:SecurityNavigationActionsPanel DataContext="{Binding NavigationService}" />
        </StackPanel>
    </Grid>
</base:BaseUserControl>
